/* Copyright (C) 2008, 2009, 2010 Faindu GmbH, Switzerland.
* All Rights Reserved. The following is Source Code and is subject to all restrictions 
* on such code as contained in the license accompanying this project. */
package blocstac.editimage.data
{
import blocstac.editimage.base.ImageModel;
import blocstac.editimage.base.ImageOperation;

import flash.display.BitmapData;

public class AddImageOperation implements ImageOperation
{
	private var _imageData:BitmapData
	private var _imageDataUpdateIndex:int
	
	public function AddImageOperation(imageData:BitmapData)
	{
		_imageData = imageData
	}
	
	public function apply(state:ImageModel):void
	{
		_imageDataUpdateIndex = state.imageDataUpdateIndex
		state.updateImageData(_imageData)
		state.resetHasChanged()
	}
	
	public function undo(state:ImageModel):void
	{
	}

}
}